package com.sdy.healthcode.biz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdy.common.model.BizException;
import com.sdy.healthcode.biz.model.HsDepartment;
import com.sdy.healthcode.biz.param.DelDeptByIdParam;
import com.sdy.healthcode.biz.param.UpdateDeptOrAddDeptParam;
import com.sdy.mvc.service.BaseService;

import java.util.List;

/**
 * <p>
 * 科室表 服务类
 * </p>
 *
 * @author hyh
 * @since 2020-03-09
 */
public interface HsDepartmentService extends BaseService<HsDepartment> {

    /**
     * 获取部门分页列表数据
     *
     * @param name
     * @return
     * @throws BizException
     */
    IPage<HsDepartment> getDeptPageList(String name, Page page) throws BizException;

    /**
     * 获取部门树结构列表数据
     *
     * @param name
     * @return
     * @throws BizException
     */
    List<HsDepartment> getDeptTreeList(String name) throws BizException;

    /**
     * 修改部门信息或者新增部门信息
     *
     * @param hsDepartment
     * @throws BizException
     */
    void updateOrAddDept(UpdateDeptOrAddDeptParam hsDepartment) throws BizException;

    /**
     * 修改部门信息或者新增部门信息
     * @param param
     * @throws BizException
     */
    void delDeptById(DelDeptByIdParam param) throws BizException;

}
